<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

  <div id="list">
    <p id="ee">ee</p>
    <p id="se">se</p>
    <p id="ms">ms</p>
  </div>
  <p id="jss">JACVAVA</p>

  <script>
    var e2 = document.getElementById('ee')
    var js2 = document.getElementById('jss')
    var st = document.getElementById('list')
    // 要包含的节点，insertbefore（newnode）
    st.insertBefore(js2, e2)//st是父节点，要吧js2放在e2前面
    //那个要在前面，哪个就放在括号前面，都被st包裹起来
  </script>
</body>

</html>